package com.youwe.web.demo;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.youwe.model.demo.User;;

@RestController
@EnableAutoConfiguration
public class UserController {

	@RequestMapping("/user")
	public String home() {
		User user = new User();
		user.setId("he");
		user.setName("Lucy");
		user.setPassword("*****");
		return new StringBuffer().append(user.getId()).append(user.getName()).append(user.getPassword()).toString();
	}

}
